cmake_minimum_required (VERSION 2.6)

project (Tutorial)

# set version no.
set ( Tutorial_Version_Major 1 )
set ( Tutorial_Version_Minor 0 )

# configure a header file to pass some settings from Cmake to the source code
# read from .in to .h
configure_file ( "${PROJECT_SOURCE_DIR}/TutorialConfig.h.in" "${PROJECT_BINARY_DIR}/TutorialConfig.h" )

# add the binary tree to the search path for include files so we could find the TutorialConfig.h from the source code
include_directories ( "${PROJECT_BINARY_DIR}" )
include_directories ( "${PROJECT_SOURCE_DIR}/MathFunc" )

add_subdirectory ( MathFunc )

#add executable
add_executable(Tutorial tutorial.cpp)
target_link_libraries( Tutorial MathFunc )

